package com.atguigu.yygh.user.service;

import com.atguigu.yygh.user.mapper.UserInfoMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haust.su.ghyy.model.user.UserInfo;
import com.haust.su.ghyy.vo.user.LoginVo;
import com.haust.su.ghyy.vo.user.UserAuthVo;
import com.haust.su.ghyy.vo.user.UserInfoQueryVo;

import java.util.Map;

/**
 * @author haustsusu
 * @create 2023-05-02-13:54
 */
public interface UserInfoService extends IService<UserInfo> {

    //用户手机号登录接口
    Map<String, Object> loginUser(LoginVo loginVo);

    //用户认证的方法
    void userAuth(Long userId, UserAuthVo userAuthVo);

    //用户列表查询带分页
    IPage<UserInfo> selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    //用户锁定功能
    void lock(long userId, Integer status);

    //在后台显示用户详情信息
    Map<String, Object> show(long userId);

    //用户认证审批
    void approval(Long userId, Integer authStatus);
}
